<?php 
class CZhuanti extends Zend_Db_Table
{
	protected $_name;
	protected $_primary;
	public function __construct()
	{
		$this->_name=R_PRE. "zhuanti";
		parent::__construct();
	}
	
	public function add($data)
	{
		return $this->insert($data);
	}
	
	public function getById($id)
	{
		return $this->find($id)->current();
	}	
	
	
	public function edit($data, $id)
	{
		$where = 'zhuanti_id = ' . intval($id);
		
		return $this->update($data, $where);
	}
}